package ooday02;

public class Person {
    String name;
    int age;
    String address;
    String className;
    Person(){
    }
    Person(String name,int age,String address,String className){
        this.name=name;
        this.age=age;
        this.address=address;
        this.className=className;
    }
    void eat (){
        System.out.println(name+",我特么吃饭呢：");
    }
    void study(){
        System.out.println(name+"我正在努力内卷，你瞧好吧就");
    }
    void sayHi(){
        System.out.println(name+"正在睡觉，别打扰我！"+age+"岁"+address+"班"+className);
    }
//    String name;
//    int age;
//    String address;
////    Person(String name,int age,String address){
////        this.name=name;
////        this.age=age;
////        this.address=address;}



//    void  ear(){
//        System.out.println(name+"正在吃饭");
//    }
//    void  sleep(){
//        System.out.println(name+"正在睡觉");
//    }
//    void  sayHi(){
//        System.out.println("大家好，我叫"+name+"今年"+age+"岁了，地址为"+address);
//    }
}



